﻿/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Editor configuration settings.
 *
 * Follow this link for more information:
 * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
 */

FCKConfig.CustomConfigurationsPath = '' ;

FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
FCKConfig.EditorAreaStyles = '' ;
FCKConfig.ToolbarComboPreviewCSS = '' ;

FCKConfig.DocType = '' ;

FCKConfig.BaseHref = '' ;

FCKConfig.FullPage = false ;

// The following option determines whether the "Show Blocks" feature is enabled or not at startup.
FCKConfig.StartupShowBlocks = false ;

FCKConfig.Debug = false ;
FCKConfig.AllowQueryStringDebug = true ;

FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/' ;
//===============================20120916FCK编辑器默认skin修改
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;
FCKConfig.SkinEditorCSS = '' ;	// FCKConfig.SkinPath + "|<minified css>" ;
FCKConfig.SkinDialogCSS = '' ;	// FCKConfig.SkinPath + "|<minified css>" ;

FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;

FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;

// FCKConfig.Plugins.Add( 'autogrow' ) ;
// FCKConfig.Plugins.Add( 'dragresizetable' );
FCKConfig.AutoGrowMax = 400 ;

// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>

FCKConfig.AutoDetectLanguage	= true ;
FCKConfig.DefaultLanguage		= 'en' ;
FCKConfig.ContentLangDirection	= 'ltr' ;

FCKConfig.ProcessHTMLEntities	= true ;
FCKConfig.IncludeLatinEntities	= true ;
FCKConfig.IncludeGreekEntities	= true ;

FCKConfig.ProcessNumericEntities = false ;

FCKConfig.AdditionalNumericEntities = ''  ;		// Single Quote: "'"

FCKConfig.FillEmptyBlocks	= true ;

FCKConfig.FormatSource		= true ;
FCKConfig.FormatOutput		= true ;
FCKConfig.FormatIndentator	= '    ' ;

FCKConfig.EMailProtection = 'none' ; // none | encode | function
FCKConfig.EMailProtectionFunction = 'mt(NAME,DOMAIN,SUBJECT,BODY)' ;

FCKConfig.StartupFocus	= false ;
FCKConfig.ForcePasteAsPlainText	= false ;
FCKConfig.AutoDetectPasteFromWord = true ;	// IE only.
FCKConfig.ShowDropDialog = true ;
FCKConfig.ForceSimpleAmpersand	= false ;
FCKConfig.TabSpaces		= 0 ;
FCKConfig.ShowBorders	= true ;
FCKConfig.SourcePopup	= false ;
FCKConfig.ToolbarStartExpanded	= true ;
FCKConfig.ToolbarCanCollapse	= true ;
FCKConfig.IgnoreEmptyParagraphValue = true ;
FCKConfig.FloatingPanelsZIndex = 10000 ;
FCKConfig.HtmlEncodeOutput = false ;

FCKConfig.TemplateReplaceAll = true ;
FCKConfig.TemplateReplaceCheckbox = true ;

FCKConfig.ToolbarLocation = 'In' ;

FCKConfig.ToolbarSets["Default"] = [
	['Source','FitWindow','Save','Preview','-','PasteText','PasteWord','-','RemoveFormat','-','Bold','Italic','Underline','StrikeThrough','-','OrderedList','UnorderedList','-','Outdent','Indent'],
	['JustifyLeft','JustifyCenter','JustifyRight','-','Link','Unlink','Anchor','-','TextColor','BGColor','-','MyCode','About'],
	'/',
	['FontFormat','FontName','FontSize'],
	['Image','Flash','Media','Addon','-','DedePage','Blockquote','Br','-','Rule','Codes','Table','Smiley','InsertCode','googlemaps','symbol','fmplayer','savehttpfiles','SwfUpload']
] ;

FCKConfig.ToolbarSets["Basic"] = [
	['Source','-','Save','-','FitWindow','-','Preview','Cut','Copy','Paste','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough','-','OrderedList','UnorderedList','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','DedePage','Blockquote','Br','Link','Unlink','Anchor','TextColor','BGColor','Table','Rule','Media','Movie'],
	['-','MyCode'],
	['Undo','Redo','-','-','RemoveFormat','Outdent','Indent','Blockquote','Style','FontFormat','FontName','FontSize','About'],
	'/',
	['Image','Flash','Smiley','KMP','CuteMp3','fmplayer','DewPlayer','LrcShow','InsertCode','HighLighter','-','RunCode','HtmlTiles','Acronym','FileIcon','symbol','savehttpfiles','SwfUpload','googlemaps'],
] ;

FCKConfig.ToolbarSets["Small"] = [
	['Source','Preview','-','PasteText','PasteWord','-','Bold','Italic','Underline','StrikeThrough','-','OrderedList','UnorderedList'],
	['Link','Unlink','Anchor','-','TextColor','BGColor'],
	['Image','Flash','Media','Addon','-','BlockQuote','Br','-','Rule','Codes','Table','Smiley']
] ;

FCKConfig.ToolbarSets["Member"] = [
    ['Source','Save','FitWindow','FontName','FontSize','Bold','TextColor','RemoveFormat','JustifyLeft','JustifyCenter','JustifyRight','Link','Unlink','SwfUploadUser','DedePage']
] ;

FCKConfig.ToolbarSets["Diy"] = [
    ['Source','Save','FitWindow','FontName','FontSize','Bold','TextColor','RemoveFormat','JustifyLeft','JustifyCenter','JustifyRight','Link','Unlink','SwfUploadUser','DedePage']
] ;

FCKConfig.ToolbarSets["MemberInfo"] = [
	 ['FontName','FontSize','Bold','TextColor','RemoveFormat','JustifyLeft','JustifyCenter','JustifyRight']
] ;

FCKConfig.ToolbarSets["MemberLit"] = [
    ['Source','Save','FitWindow','FontName','FontSize','Bold','TextColor','RemoveFormat','JustifyLeft','JustifyCenter','JustifyRight','Link','Unlink','ImageUser','DedePage']
] ;

FCKConfig.EnterMode = 'p' ;			// p | div | br
FCKConfig.ShiftEnterMode = 'br' ;	// p | div | br

FCKConfig.Keystrokes = [
	[ CTRL + 65 /*A*/, true ],
	[ CTRL + 67 /*C*/, true ],
	[ CTRL + 70 /*F*/, true ],
	[ CTRL + 83 /*S*/, true ],
	[ CTRL + 84 /*T*/, true ],
	[ CTRL + 88 /*X*/, true ],
	[ CTRL + 86 /*V*/, 'Paste' ],
	[ CTRL + 45 /*INS*/, true ],
	[ SHIFT + 45 /*INS*/, 'Paste' ],
	[ CTRL + 88 /*X*/, 'Cut' ],
	[ SHIFT + 46 /*DEL*/, 'Cut' ],
	[ CTRL + 90 /*Z*/, 'Undo' ],
	[ CTRL + 89 /*Y*/, 'Redo' ],
	[ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
	[ CTRL + 76 /*L*/, 'Link' ],
	[ CTRL + 66 /*B*/, 'Bold' ],
	[ CTRL + 73 /*I*/, 'Italic' ],
	[ CTRL + 85 /*U*/, 'Underline' ],
	[ CTRL + SHIFT + 83 /*S*/, 'Save' ],
	[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],
	[ SHIFT + 32 /*SPACE*/, 'Nbsp' ]
] ;

FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ;
FCKConfig.BrowserContextMenuOnCtrl = false ;
FCKConfig.BrowserContextMenu = false ;

FCKConfig.EnableMoreFontColors = true ;
FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ;

FCKConfig.FontFormats	= 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ;
FCKConfig.FontNames		= '宋体;楷体_GB2312;仿宋_GB2312,黑体;隶书;幼圆;微软雅黑;Arial; Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;' ;
FCKConfig.FontSizes		= '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px';

FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
FCKConfig.TemplatesXmlPath	= FCKConfig.EditorPath + 'fcktemplates.xml' ;

FCKConfig.SpellChecker			= 'WSC' ;	// 'WSC' | 'SpellerPages' | 'ieSpell'
FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
FCKConfig.FirefoxSpellChecker	= false ;

FCKConfig.MaxUndoLevels = 15 ;

FCKConfig.DisableObjectResizing = false ;
FCKConfig.DisableFFTableHandles = true ;

FCKConfig.LinkDlgHideTarget		= false ;
FCKConfig.LinkDlgHideAdvanced	= false ;

FCKConfig.ImageDlgHideLink		= false ;
FCKConfig.ImageDlgHideAdvanced	= false ;

FCKConfig.FlashDlgHideAdvanced	= false ;

FCKConfig.MediaDlgHideAdvanced	= false ;  //这里新增 MediaDlgHideAdvanced

FCKConfig.ProtectedTags = '' ;

// This will be applied to the body element of the editor
FCKConfig.BodyId = '' ;
FCKConfig.BodyClass = '' ;

FCKConfig.DefaultStyleLabel = '' ;
FCKConfig.DefaultFontFormatLabel = '' ;
FCKConfig.DefaultFontLabel = '' ;
FCKConfig.DefaultFontSizeLabel = '' ;

FCKConfig.DefaultLinkTarget = '' ;

// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word
FCKConfig.CleanWordKeepsStructure = false ;

// Only inline elements are valid.
FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ;

// Attributes that will be removed
FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ;

FCKConfig.CustomStyles =
{
	'Red Title'	: { Element : 'h3', Styles : { 'color' : 'Red' } }
};

// Do not add, rename or remove styles here. Only apply definition changes.
FCKConfig.CoreStyles =
{
	// Basic Inline Styles.
	'Bold'			: { Element : 'strong', Overrides : 'b' },
	'Italic'		: { Element : 'em', Overrides : 'i' },
	'Underline'		: { Element : 'u' },
	'StrikeThrough'	: { Element : 'strike' },

	// Basic Block Styles (Font Format Combo).
	'p'				: { Element : 'p' },
	'div'			: { Element : 'div' },
	'pre'			: { Element : 'pre' },
	'address'		: { Element : 'address' },
	'h1'			: { Element : 'h1' },
	'h2'			: { Element : 'h2' },
	'h3'			: { Element : 'h3' },
	'h4'			: { Element : 'h4' },
	'h5'			: { Element : 'h5' },
	'h6'			: { Element : 'h6' },

	// Other formatting features.
	'FontFace' :
	{
		Element		: 'span',
		Styles		: { 'font-family' : '#("Font")' },
		Overrides	: [ { Element : 'font', Attributes : { 'face' : null } } ]
	},

	'Size' :
	{
		Element		: 'span',
		Styles		: { 'font-size' : '#("Size","fontSize")' },
		Overrides	: [ { Element : 'font', Attributes : { 'size' : null } } ]
	},

	'Color' :
	{
		Element		: 'span',
		Styles		: { 'color' : '#("Color","color")' },
		Overrides	: [ { Element : 'font', Attributes : { 'color' : null } } ]
	},

	'BackColor'		: { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } },
	'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } }
};

// The distance of an indentation step.
FCKConfig.IndentLength = 40 ;
FCKConfig.IndentUnit = 'px' ;

// Alternatively, FCKeditor allows the use of CSS classes for block indentation.
// This overrides the IndentLength/IndentUnit settings.
FCKConfig.IndentClasses = [] ;

// [ Left, Center, Right, Justified ]
FCKConfig.JustifyClasses = [] ;



FCKConfig.SmileyImages	= ['1.gif','10.gif','11.gif','12.gif','13.gif','14.gif','15.gif','16.gif','17.gif','18.gif','19.gif','2.gif','20.gif','21.gif','22.gif','23.gif','24.gif','25.gif','26.gif','27.gif','28.gif','29.gif','3.gif','30.gif','31.gif','32.gif','33.gif','34.gif','35.gif','36.gif','37.gif','38.gif','39.gif','4.gif','40.gif','41.gif','42.gif','43.gif','44.gif','45.gif','46.gif','47.gif','48.gif','49.gif','5.gif','50.gif','51.gif','52.gif','53.gif','54.gif','55.gif','56.gif','57.gif','58.gif','59.gif','6.gif','60.gif','61.gif','62.gif','63.gif','64.gif','7.gif','8.gif','9.gif'] ;
FCKConfig.SmileyColumns = 8 ;
FCKConfig.SmileyWindowWidth		= 400 ;
FCKConfig.SmileyWindowHeight	= 400 ;

FCKConfig.BackgroundBlockerColor = '#ffffff' ;
FCKConfig.BackgroundBlockerOpacity = 0.50 ;



FCKConfig.MsWebBrowserControlCompat = false ;

FCKConfig.PreventSubmitHandler = false ;

FCKConfig.Plugins.Add( 'insertcode' , 'zh-cn,en' ) ; //这里加入了 插入代码 插件

/***********************新增的拓展插件*******************************/
FCKConfig.Plugins.Add('media', 'zh-cn,en') ; //这里加入了 插入媒体Media 插件
FCKConfig.Plugins.Add( 'movie','zh-cn,en') ; //这里加入了 影音视频 插件

FCKConfig.Plugins.Add( 'dewplayer', 'zh-cn,en') ; //这里加入了 dewplayer mp3播放器 插件
FCKConfig.Plugins.Add( 'kmp','zh-cn,en') ;  //这里加入了 KMP MP3播放器 插件

FCKConfig.Plugins.Add( 'cutemp3','zh-cn,en' ) ; //这里加入了 CuteMP3 Player音乐播放器 插件
FCKConfig.Plugins.Add( 'fmplayer','zh-cn,en' ) ; //这里加入了 fmplayer mp3播放器 插件
FCKConfig.Plugins.Add( 'lrcshow', 'zh-cn,en') ; //这里加入了 歌词同步播放 插件

FCKConfig.Plugins.Add( 'insertcode' , 'zh-cn,en' ) ; //这里加入了 插入代码 插件
FCKConfig.Plugins.Add( 'highlighter', 'zh-cn,en' ) ; //这里加入了 插入高亮代码 插件
FCKConfig.Plugins.Add( 'runcode', 'zh-cn,en') ; //这里加入了 html运行代码 插件

FCKConfig.Plugins.Add( 'htmltiles','zh-cn,en') ; //这里加入了 插入HTML模板 插件
FCKConfig.Plugins.Add( 'acronym','zh-cn,en') ; //这里加入了 插入显示文字（鼠标划过提示文字显示）插件
FCKConfig.Plugins.Add( 'fileicon','zh-cn,en') ; //这里加入了 插入(文件)图标 插件
FCKConfig.Plugins.Add( 'symbol','zh-cn,en' ) ; //这里加入了 特殊字符 插件

FCKConfig.Plugins.Add( 'savehttpfiles','zh-cn,en');    //这里加入了 远程保存图片 插件
FCKConfig.Plugins.Add( 'imgmap', 'zh-cn,en') ; //这里加入了图像热区 插件
FCKConfig.Plugins.Add( 'highslide', 'zh-cn,en') ; //这里加入了 Highslide JS 插件
FCKConfig.Plugins.Add( 'swfupload', 'zh-cn,en') ; //这里加入了 Highslide JS 插件
//FCKConfig.Plugins.Add('swfupload','zh-cn');

/***  Google Maps 插件 Begin ***/
FCKConfig.Plugins.Add( 'googlemaps', 'zh-cn,zh,en,es,fr,it,nl,de,no') ; // Google Maps Plugin

  // GoogleMaps_Key: Google Maps API (Google Maps Key) :
FCKConfig.GoogleMaps_Key = '0FqyWq47BJNL_BaYmoIf3HFQ-q4RRkHrRBREcyg' ;
//此密钥适用于所有使用以下指纹所对应证书进行验证的应用：94:1E:43:49:87:73:BB:E6:A6:88:D7:20:F1:8E:B5:98
  
FCKConfig.GoogleMaps_CenterLat = '24.491523';  // The latitude of the center  中心纬度
FCKConfig.GoogleMaps_CenterLon = '118.089294'; // The longitude of the center  中心经度
/**  Google Maps 插件 End **/


/***************************** END *************************/
